<!DOCTYPE html>
<html>
<?php 
 	include "menu.php";
	include "../dao/ClienteDAO.php";
	include "../dao/PropostaDAO.php";
	
?>
<head>
<meta charset="ISO-8859-1">
<title>Cadastro de proposta</title>
<link rel="stylesheet" type="text/css" href="../jqueryeasyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../jqueryeasyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="../css/layout.css">
<script type="text/javascript" src="../jqueryeasyui/jquery.min.js"></script>
<script type="text/javascript" src="../jqueryeasyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../javascript/editaProposta.js"></script>
<script type="text/javascript" src="../javascript/datagrid-filter.js"></script>

</head>
<body>
	<h2>Proposta comercial</h2>
	<div class="container">
		<?php
			Menu::data();
			Menu::mainMenu();
		?>
	</div>
	
	<form name="combo_box" action="../controller/GravaProposta.php" method="post">
		
		<input type="hidden" id="idpropostaupdate" name="idpropostaupdate" value="<?php echo $_GET["idproposta"];?>" />
		
		<div class="grid">
			<div class="colunaesquerda">
				<h4>Cliente: </h4>
			
				<select name="cliente" id="cliente" required="required">
				
					<option value="" selected="selected">Selecione um cliente</option>
				
					<?php
						
						$result = ClienteDAO::Lista();
						foreach ($result as $id){
		          				echo "<option value='$id->idcliente'>".$id->nome."</option>" ;
		          		}
		          	?>
	          		
				</select>
				
				</br></br>
				
				<h4>Obra</h4>
				<input type="text" name="obra" id="obra" autocomplete="on" required="required" style="width:600px;" >
							
				</br></br>
				<input type="submit" value="Prosseguir"/>
			</div>
		</div>
	
	</form>

	</div>
	</div>
</body>
</html>
